<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Login</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" th:href="@{/css/login.css}">

</head>
<body>
    <h1>Login</h1>
    
    <!-- 显示注册成功消息 -->  
    <div th:if="${message}" style="color:green;">  
        <p th:text="${message}"></p> 
    </div>  
    
    <form th:action="@{/auth}" method="post">
        <p>
            <label for="username">用户名</label>
            <input type="text" id="username" name="username">
        </p>
        <p>
            <label for="pwd">密码</label>
            <input type="password" id="password" name="password">
        </p>
        <input type="submit" value="登录">
    </form>
    
    <!-- 添加一个跳转到注册页面的按钮 -->
    <a th:href="@{/register}" class="register-button">注册</a>
</body>
</html>